package com.jlu.yygh.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jlu.yygh.model.order.OrderInfo;
import com.jlu.yygh.vo.order.OrderCountQueryVo;
import com.jlu.yygh.vo.order.OrderQueryVo;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {
  //保存订单
  Long saveOrder(String scheduleId, Long patientId);

  /**
   * 获取订单详情
   */
  OrderInfo getOrderInfo(String id);

  /**
   * 分页列表
   */
  IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

  /**
   * 就诊提醒
   */
  void patientTips();

  /**
   * 订单统计
   */
  Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

  /**
   * 取消订单
   * @param orderId
   */
  Boolean cancelOrder(Long orderId);
}